import unittest
import HTMLTestRunner
from tinyshop_ui.module import goods
from tinyshop_ui.module import marketmodule
from tinyshop_ui.module import neirongguanli
from tinyshop_ui.module import orders
from tinyshop_ui.module import systemsettingsmodule
from tinyshop_ui.module import tongjibaobiao
from tinyshop_ui.module import usermodule

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(goods.Goods))
# suite.addTest(unittest.makeSuite(marketmodule.market))
# suite.addTest(unittest.makeSuite(neirongguanli.tes_te))
# suite.addTest(unittest.makeSuite(orders.Orders))
# suite.addTest(unittest.makeSuite(systemsettingsmodule.automodule))
# suite.addTest(unittest.makeSuite(tongjibaobiao.tes_tes))
# suite.addTest(unittest.makeSuite(usermodule.user))

fileName = 'D:\\tinyshop_v2-4\\result.html'
fp = open(fileName,'wb')
runner = HTMLTestRunner.HTMLTestRunner(
    stream=fp,
    title='TinyShop_v2.4_DDT',
    description='用例执行情况'
)
runner.run(suite)